@extends('layouts.userctl')
@section('content')
 <blockquote class="layui-elem-quote">

 		<a style="color:#fff;" href="{{ url('/admin/staff/index') }}" class="layui-btn layui-btn-normal layui-btn-sm" id="searchBtn">返  回</a>

 </blockquote>
<div class="layui-form">
	<table class="layui-table">
		<colgroup>
			<col width="100">
			<col width="150">
			<col width="150">
			<col width="150">
			<col width="150">
			<col width="150">
			<col width="150">
			<col width="150">
			<col width="150">
			<col width="150">
		</colgroup>
		<thead>
			<tr>
				<th>日期</th>
				<th>上午上班打卡</th>
				<th>上午上班图片</th>
				<th>上午下班打卡</th>
				<th>上午下班图片</th>
				<th>下午上班打卡</th>
				<th>下午上班图片</th>
				<th>下午下班打卡</th>
				<th>下午下班图片</th>
				<th>查看行为轨迹</th>
			</tr> 
		</thead>
		<tbody>
			@foreach($details as $d)
			<tr>
				<td>@if(isset($d[0]['day'])) {{$d[0]['day']}} @endif</td>
				<td>@if(isset($d[0]['created'])) {{$d[0]['created']}} @endif</td>
				<td>@if(isset($d[0]['image'])) <img src="{{$d[0]['image']}}"/> @endif</td>
				
				<td>@if(isset($d[1]['created'])) {{$d[1]['created']}} @endif</td>
				<td>@if(isset($d[1]['image'])) <img src="{{$d[1]['image']}}"/> @endif</td>
				
				<td>@if(isset($d[2]['created'])) {{$d[2]['created']}} @endif</td>
				<td>@if(isset($d[2]['image'])) <img src="{{$d[2]['image']}}"/> @endif</td>
				
				<td>@if(isset($d[3]['created'])) {{$d[3]['created']}} @endif</td>
				<td>@if(isset($d[3]['image'])) <img src="{{$d[3]['image']}}"/> @endif</td>
				<td>
					<a href="{{route('admin.staff.trajectory',array('uid'=>$d[0]['user_id'],'day'=>$d[0]['day']))}}">查看</a>
				</td>
			</tr>
			@endforeach
		</tbody>
	</table>
</div>
 @endsection
          